package com.xzx.annotation.bean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * @author xinzhixuan
 * @version V1.0
 * @date 2018/7/14 22:26
 */
@Component
public class Cat implements InitializingBean, DisposableBean {
    public Cat() {
        System.out.println("Cat Constroctor....");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("Cat destory......");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("Cat init......");
    }
}
